{extend name='main'}

{block name="button"}

{/block}

{block name="content"}
<div class="think-box-shadow">
    {include file='video_playback/index_search'}
    <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
            </th>
            <th class="text-center">编号</th>
            <th class='text-left nowrap'>店铺名称</th>
            <th class='text-left nowrap'>设备名称</th>
            <th class='text-left nowrap'>设备ID</th>
            <th class='text-left nowrap'>通道ID</th>
            <th class="text-center nowrap">操作</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key => $vo}
        <tr data-dbclick>
            <td class='list-table-check-td think-checkbox'>
                <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
            </td>
            <td class='text-center'>{$vo.id|default=''}</td>
            <td class='text-left'>{$vo.shop_name|default=''}</td>
            <td class='text-left'>{$vo.name|default=''}</td>
            <td class='text-left'>{$vo.equip_id|default=''}</td>
            <td class='text-left'>{$vo.channel_id|default=''}</td>
            <td class='text-center nowrap'>
                {if auth("play")}
                <a data-dbclick class="layui-btn layui-btn-xs" data-title="查看回放" data-modal='{:url("play")}?device_id={$vo.equip_id}&channel_id={$vo.channel_id}'>查看回放</a>
                {/if}
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}